<!-- 该组件是 面包屑导航组件 -->
<template>
    <div>
        <div>
            <el-breadcrumb separator="/">
                <el-breadcrumb-item v-for="(item,index) in $route.meta" :key="index">
                    <router-link v-if="item.url" :to="item.url">{{item.name}}</router-link>
                    <a v-else>{{item.name}}</a>
                </el-breadcrumb-item>
            </el-breadcrumb>
        </div>
    </div>
</template>

<script>
import { Breadcrumb,BreadcrumbItem} from 'element-ui';
export default {
    components:{
        "el-breadcrumb":Breadcrumb,
        "el-breadcrumb-item":BreadcrumbItem
    }
}
</script>

<style lang="scss" scoped>

</style>